<!DOCTYPE html>  
<html>  
  <head>  
    <title>Class Attributes</title>  
  </head>
  <body>  
    <script type="text/javascript">
      class Employee  
      {  
          fname = "John";
          lname = "Doe";
          age = 24;
      };
      var e1=new Employee();  
      var e2=new Employee();  
       
      document.write("Name: " + e1.fname + " " + e1.lname+"<br>")
      document.write("Age: " + e1.age+"<br>")
      
      e2.age = 25;
      document.write("Age: " + e2.age);
    </script> 
  </body>  
</html>